package com.tarena.all;
import java.awt.*;
import java.applet.*;

public class Tongxinyuan extends Applet{

	public void paint(Graphics g){
		String str="同心";
		int length =str.length();
		g.setColor(Color.blue);
		g.drawOval(60, 60, 200, 200);
		g.setColor(Color.red);
		g.drawOval(60+5, 60+5, 190, 190);
		g.setColor(Color.green);
		g.drawOval(60+10, 60+10, 180, 180);
		g.setColor(Color.pink);
		g.drawOval(60+15, 60+15, 170, 170);
		g.setColor(Color.black);
		g.drawOval(60+20, 60+20, 160, 160);
		g.setColor(Color.gray);
		g.drawOval(60+25, 60+25, 150, 150);
		g.setColor(Color.yellow);
		g.drawOval(60+30, 60+30, 140, 140);
		g.setColor(Color.black);
		g.drawString("同心", 100+(100-length)/2, 165);
		
		
	}

	
}